package com.itheima.demo;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

public class fu {
    public void run() throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, InstantiationException {
       Class clazz = Class.forName("com.itheima.demo.zi");
        Method run2 = clazz.getDeclaredMethod("run2");
        Object o = clazz.newInstance();

        run2.invoke(this);
    }
}
